//
//  NewFeatureView.swift
//  上海微博
//
//  Created by teacher on 16/2/25.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

/// 新特性视图
class NewFeatureView: UIView {

    override init(frame: CGRect) {
        super.init(frame: UIScreen.mainScreen().bounds)
        
        self.backgroundColor = UIColor.orangeColor()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    deinit {
        print("\(classForCoder) \(__FUNCTION__)")
    }
    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        removeFromSuperview()
    }
}
